package com.entity;

import lombok.Data;

import java.util.Optional;

/**
 * @Description:
 * @Author: whp
 * @Date: 2021-02-08 16:17
 */
@Data
public class User {
    public User(){}
    public User(String email){
        this.email=email;
    }
    public User(String email,String image){
        this.email=email;
    }

    public Optional<String> getImage(){
        return Optional.ofNullable(image);
    }

    private String image;
    private String userName;
    private String email;
}
